<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
  <meta charset="UTF-8">
  <title>首页 - Spring Security Demo</title>
  <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
</head>
<body>
<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
  <div class="container">
    <a class="navbar-brand" href="/">Security Demo</a>
    <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav">
      <span class="navbar-toggler-icon"></span>
    </button>
    <div class="collapse navbar-collapse" id="navbarNav">
      <ul class="navbar-nav ms-auto">
        <li class="nav-item">
          <a class="nav-link active" href="/">首页</a>
        </li>
        <li class="nav-item">
          <a class="nav-link" href="/login">登录</a>
        </li>
        <li class="nav-item">
          <a class="nav-link" href="/dashboard">仪表盘</a>
        </li>
        <li class="nav-item">
          <a class="nav-link" href="/admin">管理员</a>
        </li>
      </ul>
    </div>
  </div>
</nav>

<div class="container mt-5">
  <div class="jumbotron">
    <h1 class="display-4">Spring Security 演示</h1>
    <p class="lead">这是一个基于 Spring Boot 3.1.4 和 Spring Security 的安全验证框架示例。</p>
    <hr class="my-4">
    <p>
      欢迎访问我们的系统！
      <a class="btn btn-primary btn-lg" href="/login" role="button">立即登录</a>
    </p>
<!--    <p>-->
<!--      或者直接访问仪表盘：-->
<!--      <a class="btn btn-secondary btn-lg" href="/dashboard" role="button">进入仪表盘</a>-->
<!--    </p>-->
  </div>
</div>

<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
</body>
</html>
